#parse("/user/admin/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<script language="javascript">
function doSave()
{
	if(doCheck()){
		if(EditForm.cid.value!="")EditForm.parameter.value="update";
		EditForm.submit();
	}
}
function doCheck()
{
if(EditForm.title.value=="")
{
alert("栏目标题不能为空！");
EditForm.title.focus();
return false;
}

return true;
}
</script>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><strong>Blog推荐资源</strong></td>
  </tr>
</table>
<form name="EditForm" method="post" action="/blogResource.do">
 <input type="hidden" name="parameter" value="add" />
 <input type="hidden" name="cid" value="$!cid" />	
 <input type="hidden" name="inputuser" value="$!currentUser.userName" />	
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8E8E8">
  <tr bgcolor="#FFFFFF"> 
    <td width="80" height="29" align="center">资源名称：</td>
    <td align="left"><input name="title" type="text" class="input3" id="ti" value="$!title" /> 
      <span class="text-red4">*</span></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align="center" valign="top">资源地址：</td>
    <td align="left"><textarea name="url" cols="2" id="url" style="width:80%">$!url</textarea></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align="center" valign="top">资源类型：</td>
    <td align="left"> <select name="type">
			<option value="0">书籍</option>
		</select></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align="center" valign="top">资源简介：</td>
    <td align="left"> <textarea name="content" cols="2" id="content" style="width:80%">$!intro</textarea></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="50" colspan="2" align="center">
			<input type="button" name="SubmitSave" value="保存" onClick="doSave()" />      　
			<input type="reset" name="SubmitReset" value="重置" />
      </td>
    </tr>
</table>
</form>
	<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
#parse("/user/admin/inc/bottom.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end